package people.professor;

import java.util.Collection;
import java.util.HashSet;
import java.util.Set;

import people.Person;
import course.Course;

public class Professor extends Person {
	
	private final Set<Course> courses = new HashSet<Course>(); 
	
	public Professor(Name name) {
		super(name);
	}
	
	public Collection<Course> getCourses() {
		return courses;
	}
	
	public void addCourse(Course course) {
		courses.add(course);
	}
	
	public void removeCourse(Course course) {
		courses.remove(course);
	}
}
